DX11 EXTRACT ANIMATION

Extracts the given keyframe data from the provided animation and creates a new Animation instance from this.
The created animation will be independent from the animation it was extracted from.
This can be useful to split up animation data since many 3D modelling programs tend to export all animation data as a single animation sequence.

  Syntax
Return Dword = DX11 EXTRACT ANIMATION(anim, startFrame, lastFrame, name)
  Parameters
anim
Dword
The source animation to extract the subanimation from.
startFrame
Dword
The first frame to extract from the source animation. Will be clamped at the frame count of the animation.
lastFrame
Dword
The last frame to extract from the source animation. Will be clamped at the frame count of the animation.
name
String
A name to give the extracted animation.

  Returns

A new Animation instance that contains the animation data between the given frames of the specified source Animation.

  See also

ANIMATION Functions Menu
DX11 Function Categories